<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?=$title?></title>

<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="Erwin Aligam - styleshout.com" />
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />

<link rel="stylesheet" type="text/css" media="screen" href="<?= base_url()?>themes/default/css/screen.css" />


</head>
<body>

	<!-- header starts-->
	<div id="header-wrap"><div id="header" class="container_16">						
		
				<h1 id="logo-text"><a href="<?=base_url()?>" title=""><?=$this->session->userdata('BLOGName')?></a></h1>		
		<!--<p >< ?  =$this->session->userdata('BLOGTitle')?></p>	 -->
		
		<!-- navigation -->
		<div  id="nav">
			 <ul id="cssdropdown">
				<li class="current"><a href="<?=base_url()?>">Home</a></li>
				<?=$pages?>
			</ul>
		</div>		
		
		
					
	
	<!-- header ends here -->
	</div></div>
	
	<!-- content starts -->
	<div id="content-outer"><div id="content-wrapper" class="container_16">
	
		<!-- main -->
		<div id="main" class="grid_15">
				
			<?php   
		switch($where)
		{		
		case 'post':  ?>
         
         <!--single post -->
          <h2><?=$post['title_link']?></h2>
		  <p class="post-info">Posted by <?=$post['author_name']?> | Filed under <?=$post['categories']?> </p>
		  <p><?=$post['content']?></p>
		  <p><?=$post['read_comments']?></p>
		  <p><?=$post['comment_form']?></p>
          
          <!--loop for posts  -->
          <?php	
		  					break; 
			case 'loop':  
		   			for($i=0;$i<count($allposts)-1;$i++)	
					{ $comments=base_url().'blog/post/'.url_title($allposts[$i]['post_title']).'#comments';
		   ?>
			
            
           <h2><?=$allposts[$i]['title_link'];?></h2>
           <p>Posted by <?=$allposts[$i]['author_name'];?> | Filed under <?=$allposts[$i]['categories'];?> </p>
			<p><?=$allposts[$i]['content'];?></p>
			<p class="postmeta">
				<a href="<?=$comments?>" class="comments">Comments : <?=$allposts[$i]['comment_no'];?></a> |
				<span class="date"><?=$allposts[$i]['date'];?></span>	
			</p>
            
            
     	<?php	} //end of for loop
		   echo $allposts['last'];
		
							break;
			case 'page':    ?>

            <h2><?=$page['title_link']?></h2>
		    <p><?=$page['content']?></p>
		  
		  <?php break;
		  case 'single':     ?>

           <p><?=$content?></p>

		  <?php break; } ?>
          
	        
		<!-- main ends -->	
        
       
		</div>
        </div></div>
		
		
				

	<!-- footer starts here -->
    <div id="outer-footer">	
	<div id="footer-wrapper" class="container_16">
	
		<div id="footer-content">
		
			<div class="grid_8">
		
			<?php 
			  echo $search_form;
			  echo $categories;
			 echo $archives;
			 echo $tag_clouds;			 
		
			
			 ?>
				
            
						
			</div>
			
			<div class="grid_8">
					
				<?php 
			 
			 echo $latest_posts;
			 echo $latestcomment;
		     
			 echo $users;
			 
			 echo $calendar;
			
			 ?>
                
					
			</div>	
		
		</div>
	
		<div id="footer-bottom">
	
			<p class="bottom-left">			
			&nbsp; &copy;2008 All your copyright info here &nbsp; &nbsp;
			Design by : <a href="http://www.styleshout.com/">styleshout</a>												
			</p>	
			
			<p class="bottom-right" >
				<a href="index.html">Home</a> |
				<a href="index.html">Sitemap</a> |
				<a href="index.html">RSS Feed</a> |						
				<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | 
		   	<a href="http://validator.w3.org/check/referer">XHTML</a>
			</p>
	
		</div>	
			
	</div>
    </div>
	<!-- footer ends here -->

</body>
</html>
